#pragma once

class CBuffer
{
public:
	CBuffer();
	CBuffer(CBuffer& oBuffer);
	~CBuffer();

public:
	void		Append(char* pBuffer, int nLen);
	CBuffer		Right(int nCount);
	void		Empty();
	char*		GetBuffer();
	int			GetLength();

	const CBuffer&	operator = (const CBuffer& oBuffer);

private:
	void	ResizeBuffer(int nSizeAdd);

private:
	char*		m_pBuffer;
	int			m_nBufferLen;
	int			m_nBufCapacity;
};
